package com.liang.subject.infra.basic.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.liang.subject.infra.basic.entity.SubjectCategory;

import java.util.List;

/**
* @author 29018
* @description 针对表【subject_category(题目分类)】的数据库操作Mapper
* @createDate 2024-09-18 22:47:16
* @Entity com.liang.auth.infra.basic.mapper.domain.SubjectCategory
*/
public interface SubjectCategoryMapper extends BaseMapper<SubjectCategory> {

    List<SubjectCategory> queryPrimaryCategory(Long categoryId);

    /**
     * 根据分类id查询题目数量
     */
    Integer getSubjectCount(Long id);
}




